package cn.tedu._03vehicle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    //所有枚举类的实例必须放在最上面;
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAILED(3000, "操作失败"),
    USERNAME_EXISTS(1000,"用户名已存在"),
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误"),
    NOT_LOGIN(1002,"未登录"),
    UPLOAD_ERROR(9996,"文件上传失败"),
    THROWABLE_ERROR(9997, "校验失败"),
    VALIDATED_ERROR(9998, "数据非法");

    private Integer state;
    private String message;
}








